const adModel = require("../model/ad")
class Ad{
    static async getAdList(ctx){
        let {type} = ctx.query
        let list = await adModel.get(type)
        ctx.body = {
            code:200,
            codeInfo:"成功",
            data:list
        }
    }
}
module.exports=Ad